<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!-- 引入标签库-->
<%@ include file="/pages/inc/taglibs.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8;IE=7; IE=EDGE">
<title>打印处理签</title>
<%@ include file="/pages/inc/printHeader.jsp" %>
	<script type="text/javascript">
		$(function() {
			if('<c:out value="${docIssue.formName }" />'.length>=17 && '<c:out value="${docIssue.formName }" />'.length<=20){
				$(".fontTitle span").addClass("inlineFormNameBlock");
			}
			/*
			 * Initialise print preview plugin
			 */
			$('a.print-preview').printPreview();

			// Add keybinding (not recommended for production use)
			$(document).bind('keydown', function(e) {
				var code = (e.keyCode ? e.keyCode : e.which);
				if (code == 80 && !$('#print-modal').length) {
					$.printPreview.loadPrintPreview();
					return false;
				}
			});
		});
	</script>
	<style type="text/css">
/*打印按钮样式start  */
	.printButton {
		font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
		position: fixed; right: 15%; top: 5%;
		font-size: 1.5em;
		text-transform: uppercase;
		padding: 0;
		width: 90px;
		height:35px;
		margin-left: -100px;
		border-radius: 10px;
		color: white;
		text-shadow: -1px -1px 1px rgb(33,77,166);
		border: 5px solid transparent;
		border-bottom-color: rgb(33,77,166);
		background: rgb(51,119,255);
		cursor: pointer;
		text-align: center;
	}
	.printButton:hover {
		background: rgb(65,154,235);
		margin-top: -1px;
	}
	.printButton:active {
		border-bottom-width: 0;
		margin-top: 5px;
	}
	.printButton a{
		width: 90;
		height:58;
	}
	/*打印按钮样式end  */
	</style>
</head>
<body style="margin: 0;padding: 0;">

<!--打印按钮  -->
<a id="print-button" class="print-preview printButton">打印</a>
<!--打印时隐藏按钮样式  -->
<style type="text/css" media="print">#print-button{display: none;}</style>


<!--打印样式必须放入body内  -->
<style type="text/css">
	
	/*自定义样式start  */
	#docIssueTable{
		margin-top: 1em;
		/* border-top: solid 1px red;
		border-left: solid 1px red; */
		width: 100%;
		margin:0;
		padding:0;
		border-collapse:collapse;
		border-spacing:0;
	}
	#docIssueTable td,th{
		/* border-right: solid 1px red;
		border-bottom: solid 1px red; */
		border-top: solid 1px red;
		padding: 0.5em;
	}
	.fontTitle{
		color: red;
		/* margin: 1em 0; */
		text-align: center;
		font-size: 30px;
		font-weight: 900;
		font-family: 华文中宋;
	}
	.fontExplain{
		color: red;
		font-size: 20px;
		font-weight: 500;
		font-family: 黑体;
	}
	.fontValue{
		font-size: 16px;
		font-weight: 200;
		font-family: 宋体;
	}
	.inlineDiv{
		display:inline-block;
		*display: inline;
		zoom:1;
		vertical-align: top;
	}
	.paddingDiv{
		padding-top: 4px;
	}
	.liNote{
		list-style-type:none;margin: 0;
	}
	.spaceSpan{
	display:inline-block;
	*display: inline;
	zoom:1;
	width: 2em;
	margin: 0;
	padding: 0;
}
	/*自定义样式end  */
	
	.inlineFormNameBlock{
		display:inline-block;
		*display: inline;
		zoom:1;
	}
</style>

<div style="width: 650px;margin: auto;padding: 40px;">
	<table id="docIssueTable">
		<tr">
			<th colspan="2" style="border-top: none;">
				<div class="fontTitle" style="border-bottom: solid 3px red;">
					<span>昆明轨道交通集团有限公司公文处理笺</span>
				</div>
			</th>
		</tr>
		<tr>
			<td colspan="2">
				<span class="fontExplain inlineDiv">文件名称：</span>
				<span class="fontValue inlineDiv paddingDiv"><c:out value='${docIssue.docName}' /></span>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<span class="fontExplain inlineDiv">来文单位：</span>
				<span class="fontValue inlineDiv paddingDiv"><c:out value='${docIssue.receiveOrg}' /></span>
			</td>
		</tr>
		<tr>
			<td style="width: 40%">
				<span class="fontExplain inlineDiv">收文时间：</span>
				<span class="fontValue inlineDiv paddingDiv"><fmt:formatDate value="${docIssue.createTime}" pattern="yyyy年MM月dd日" /></span>
			</td>
			<td style="width: 60%;border-left: 1px solid red;">
				<span class="fontExplain inlineDiv">经办人部门和经办人：</span>
				<span class="fontValue inlineDiv paddingDiv"><c:out value='${docIssue.draftOrg}' /> <c:out value='${docIssue.drafter}' /></span>
			</td>
		</tr>
		
		<tr>
			<td colspan="2" style="vertical-align: top;height: 130px;">
							<span class="fontExplain" style="display: block;">公司领导批示：</span>
							<span class="fontValue inlineDiv paddingDiv" style="display: block;">
								<ul  style="margin: 5px 0;padding-left: 0.8em;">
									<c:forEach items="${signNote }" var="note">
										<fieldset style="width: 98%;margin-top: 1em;">
										<li class="liNote" style="white-space:pre-line;margin-top: 1em;">${note.docNoteContent}</li>
										<li class="liNote" style="text-align: right;padding-right: 1em;"><span class="spaceSpan"></span>${note.personName } <fmt:formatDate value="${note.noteTime}" pattern="yyyy年MM月dd日" /></li>
										</fieldset>
									</c:forEach>
								</ul>
							</span>
						</td>
	
		</tr>
		<tr>
			<td colspan="2" style="vertical-align: top;height: 130px;">
							<span class="fontExplain" style="display: block;">部门领导意见：</span>
							<span class="fontValue inlineDiv paddingDiv" style="display: block;">
								<ul  style="margin: 5px 0;padding-left: 0.8em;">
									<c:forEach items="${deptLeaderNote }" var="note">
										<li class="liNote" style="margin-top: 1em;white-space:pre-line;">${note.docNoteContent}</li>
										<li class="liNote" style="text-align: right;padding-right: 1em;"><span class="spaceSpan"></span>${note.personName } <fmt:formatDate value="${note.noteTime}" pattern="yyyy年MM月dd日" /></li>
									</c:forEach>
								</ul>
							</span>
						</td>
		
		</tr>
		<tr>
			<td colspan="2" style="vertical-align: top;height: 130px;">
							<span class="fontExplain" style="display: block;">内容摘要：</span>
							<span class="fontValue inlineDiv paddingDiv" style="display: block;">
								<ul  style="margin: 5px 0;padding-left: 0.8em;">
										<li class="liNote" style="margin-top: 1em;white-space:pre-line;">${docIssue.receiveRemark}</li>
										<li class="liNote" style="text-align: right;padding-right: 1em;"><span class="spaceSpan"></span><fmt:formatDate value="${docIssue.createTime}" pattern="yyyy年MM月dd日" /></li>
								</ul>
							</span>
						</td>
	
		</tr>
		<tr>
			<td colspan="2" style="vertical-align: top;height: 130px;">
							<span class="fontExplain" style="display: block;">拟办意见：</span>
							<span class="fontValue inlineDiv paddingDiv" style="display: block;">
								<ul  style="margin: 5px 0;padding-left: 0.8em;">
										<li class="liNote" style="margin-top: 1em;white-space:pre-line;">${docIssue.draftingOpinions}</li>
										<li class="liNote" style="text-align: right;padding-right: 1em;"><span class="spaceSpan"></span><fmt:formatDate value="${docIssue.createTime}" pattern="yyyy年MM月dd日" /></li>
									
								</ul>
							</span>
						</td>
	
		</tr>
		<tr>
			<td colspan="2" style="vertical-align: top;height: 130px;">
							<span class="fontExplain" style="display: block;">处室意见：</span>
							<span class="fontValue inlineDiv paddingDiv" style="display: block;">
								<c:forEach items="${discussionNote }" var="note" varStatus="status">
								
									
										<c:if test="${note.sfActionId eq '1' }">
											<c:if test="${!status.first }">
												</ul></fieldset>
											</c:if>
											<fieldset style="width: 98%;margin-top: 10px;">
    										<legend>${note.deptName }</legend>
    										<ul style="margin: 5px 0;padding-left: 0.8em;width: 100%;">
										</c:if>
										<li class="liNote" style="margin-top: 1em;width: 100%;white-space:pre-line;">${note.docNoteContent}</li>
										<li class="liNote" style="width:100%;"><span class="spaceSpan"></span><span class="spaceSpan"></span>${note.personName } <span class="spaceSpan"></span><fmt:formatDate value="${note.noteTime}" pattern="yyyy-MM-dd HH:mm:ss" /></li>
										<c:if test="${status.last}">
											</ul></fieldset>
										</c:if>
									
									
									</c:forEach>
							</span>
						</td>
	
		</tr>
		<tr>
			<td colspan="2">
				<span class="fontExplain inlineDiv">相关材料清单（具体内容附后）：</span><br/>
				<span class="fontValue inlineDiv paddingDiv">
					<c:forEach var="docFileList" items="${fileList}" varStatus="eachInfo">
	                    (<c:out value="${eachInfo.count}"/>)<c:out value='${docFileList.attachName}${docFileList.suffixName }' /><br>
	                </c:forEach>
				</span>
			</td>
		</tr>
		
	</table>
</div>
<div id="signFormDiv"></div>
<%-- <script type="text/javascript">
<%@ include file="/pages/jsp/docIssue/docIssueShow.js" %>
</script> --%>

</body>
</html>